﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class Control_Header : System.Web.UI.UserControl
{
    private DataAccess da = new DataAccess();
    private string ss = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Search_Click(object sender, EventArgs e)
    {
       
        if (txtsearch.Text != "")
        {
            string para = "key=" + ss + "&key1=" + txtsearch.Text;
            Response.Redirect("TimKiem.aspx?" + para);
        }
        else {
            timkiem.Visible = true;
            timkiem.Text = "Bạn chưa nhập từ khóa!";
            txtsearch.Focus();
        }
    }
}
